//
//  AppDelegate.swift
//  weibo
//
//  Created by mojue on 16/6/23.
//  Copyright © 2016年 NetLife. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
//        print(NSHomeDirectory())// 会默认在沙盒截图 
//        
//        sleep(2)
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.rootViewController = MJTabBarController()
        window?.makeKeyAndVisible()

        return true
    }

    func applicationWillResignActive(application: UIApplication) {
        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
    }

    func applicationDidEnterBackground(application: UIApplication) {
        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    }

    func applicationWillEnterForeground(application: UIApplication) {
        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
    }

    func applicationDidBecomeActive(application: UIApplication) {
        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    }

    func applicationWillTerminate(application: UIApplication) {
        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    }
    
    

    
    // 重载   
    // 方法名相同  参数类型个数不同
    // 高亮选择的文件名称可以通过拼接实现
    // 添加子控制  设置title和图片
    
    // tabBar   是一个只读属性  
    // 只读属性  只实现了属性的get方法  
    // 只读属性怎么赋值
    // kVC  是运行时的机制  几遍是只读属性  甚至是 私有属性  都可以通过KVC 赋值  
    

    // 定义索引  记录子控件x
    
    // 设置item的宽和高 
    // 索引自动加11
    
    
   // 选中颜色  
    //
    
    
    
    

}

